GUI Help > Special > setListViewImageList

setListViewImageList
setListViewImageList handle gadget, handle imageList, int index

Description:
Sets the image list for a listview gadget to use. Once you have set the image list for the listview, you can use its images in the listview items created with addListViewItem. The first image in the imagelist has an index of 0.
A listview has 3 image lists, one for large icons, one for small icons and one for state images. The image which is used depending on the current view mode set with setListViewStyle.

Return Value:


Parameters:
gadget Handle to a listview gadget.
imageList Handle of an image list
index Specifies which style of listview uses these icons. This is either 0 (Large icons - the default), 1 (Small icons), 2 (State icons)
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)